package org.agile4j.common.utils.annotation;

import java.util.Map;

/**
 * 校验结果类
 * @author hyx
 *
 */
public class ValidationResult {

	// 验证结果是否有错
	private boolean hasErrors = false ;
	
	// 校验错误信息集合
	private Map<String, String> errorMsg ;

	public boolean getHasErrors() {
		return hasErrors;
	}

	public void setHasErrors(boolean hasErrors) {
		this.hasErrors = hasErrors;
	}

	public Map<String, String> getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(Map<String, String> errorMsg) {
		this.errorMsg = errorMsg;
	}

	@Override
	public String toString() {
		return "ValidationResult [hasErrors=" + hasErrors + ", errorMsg=" + errorMsg + "]";
	}
	
	
}
